Tack.Action.ChangeScene = new Class({
	Extends: Tack.Action,

	args: { newScene: function () { return this.scenes.getKeys(); } },
	type: 'ChangeScene',

	changeSceneReferences: function (oldName, newName) {
		if (this.newScene == oldName) this.newScene = newName;
	},

	initialize: function (scene) {
		this.newScene = scene;
	},

	execute: function (player) {
		player.goToScene(this.scene.game.scenes.get(this.newScene));
	}
});
